﻿using ATTools.Models;
using Orchard.ContentManagement.Handlers;
using Orchard.Data;
using Orchard.Environment.Extensions;

namespace ATTools.Handlers
{
    [OrchardFeature("ATTools.MicrosoftTranslatorWidget")]
    public class TranslationWidgetHandler : ContentHandler
    {
        public TranslationWidgetHandler(IRepository<TranslationWidgetRecord> repository)
        {
            Filters.Add(StorageFilter.For(repository));
        }
    }
}